/**
 * 字典模块API
 */

import axios from './request';

/**
 * 获取科目列表
 * @returns 
 */
export const getSubjects = () => axios.get('/dictionary/getSubjects');

/**
 * 获取职称列表
 * @returns 
 */
export const getPositions = () => axios.get('/dictionary/getPositions');

/**
 * 获取日志列表
 * @returns 
 */
export const getLogs = () => axios.get('/dictionary/getLogs');

/**
 * 获取列表
 * @param {*} type 类型
 * @returns 
 */
export const getList = type => axios.get('/dictionary/list/' + type);

/**
 * 获取类型
 * @returns 
 */
export const getTypes = () => axios.get('/dictionary/types');

/**
 * 添加字典
 * @param {*} dictionary 要添加的字典
 * @returns 
 */
export const add = dictionary => axios.post('/dictionary/add', dictionary);

/**
 * 修改字典
 * @param {*} dictionary 要修改的字典
 * @returns 
 */
export const update = dictionary => axios.put('/dictionary/update', dictionary);

/**
 * 获取年级列表
 * @returns 
 */
export const getGradeList = () => axios.get('/dictionary/grades');

/**
 * 获取学生状态列表
 * @returns 
 */
export const getStudentStatus = () => axios.get('/dictionary/status');

/**
 * 获取学生档案列表
 * @returns 
 */
export const getStudentRecords = () => axios.get('/dictionary/records');

/**
 * 获取学生费用类型
 * @returns 
 */
export const getStudentFee = () => axios.get('/dictionary/fee');

/**
 * 获取教师考勤类型
 * @returns 
 */
export const getAttendanceList = () => axios.get('/dictionary/attendance');

/**
 * 获取审批状态
 * @returns 
 */
export const getAuditStatus = () => axios.get('/dictionary/auditStatus');